package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;

import java.util.Date;

/**
 * IP灰名单
 * Created by liuyu on 2016/11/15.
 */
@Entity
@Table(name = "RC_IP_ADDRESS_GRAYLIST")
public class RcIPAddressGraylist extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(name = "RC_IP_ADDRESS_GRAYLIST_GENERATOR", sequenceName = "RC_IP_ADDRESS_GRAYLIST_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RC_IP_ADDRESS_GRAYLIST_GENERATOR")
    @Column(name = "IP_ADDRESS_ID")
    private Long ipAddressId;// ID
    
    @Column(name = "IP_ADDR_CONT", length = 20)
    private String ipAddrCont;// IP地址内容
    
    @Column(name = "NATION", length = 20)
    private String nation;// 国家
    
    @Column(name = "PROV_CITY", length = 20)
    private String provCity;// 省市
    
    @Column(name = "GMT_CREATE")
    @Temporal(TemporalType.TIMESTAMP)
    private Date gmtCreate;// 记录创建时间
    
    @Column(name = "OPER_NAME", length = 10)
    private String operName;// 操作人员姓名
    
    @Column(name = "SOURCE", length = 10)
    private String source;// 来源
    
    @Column(name = "REASON", length = 255)
    private String reason;// 处理原因
    
    @Column(name = "GMT_MODIFY")
    @Temporal(TemporalType.TIMESTAMP)
    private Date gmtModify;//修改时间
    
    @Version
    @Column(name = "VERSION", precision = 22, scale = 0)
    private int version;
    
    @Column(name = "STATUS", length = 2)
    private String status;

    
    public Long getIpAddressId() {
        return ipAddressId;
    }

    public String getIpAddrCont() {
        return ipAddrCont;
    }

    public String getNation() {
        return nation;
    }

    public String getProvCity() {
        return provCity;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public String getOperName() {
        return operName;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public String getReason() {
        return reason;
    }

    public int getVersion() {
        return version;
    }

    public String getSource() {
        return this.source;
    }
    
    public String getStatus() {
        return this.status;
    }
    
    public void setIpAddressId(Long ipAddressId) {
        this.ipAddressId = ipAddressId;
    }

    public void setIpAddrCont(String ipAddrCont) {
        this.ipAddrCont = ipAddrCont;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public void setProvCity(String provCity) {
        this.provCity = provCity;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public void setVersion(int version) {
        this.version = version;
    }
    
    public void setSource(String source) {
        this.source = source;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
